package com.jieshuibao.mapper;

import com.jieshuibao.model.db.Question;
import com.jieshuibao.model.db.QuestionEx;
import com.jieshuibao.model.db.QuestionExample;
import com.jieshuibao.model.db.QuestionUserAnswerRewardFlow;
import com.jieshuibao.model.db.QuestionUserEx;
import com.jieshuibao.model.domain.PagePhone;
import com.jieshuibao.model.domain.SerarchExample;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface QuestionExMapper {
	//我问的
    List<QuestionEx> selectPageEx(QuestionExample example);
  //待揭榜
    List<QuestionEx> selectPageExTwo(PagePhone pagePhone);
    //偷偷看列表
    List<QuestionUserEx> selectPageQuestionUser(PagePhone pagePhone);
    // 查询问题根据问题id
    QuestionUserEx selectQuestionUserByUuuid(@Param(value="QUuid")String QUuid);
   //根据问题id 查用户的phoneNum 
    String selectphoneNumByQuestionID(String questionUuid);
    //我回答的悬赏问题
    List<QuestionUserAnswerRewardFlow> selectMyAnswerQuestion(PagePhone pagePhone);
    //分享偷偷看列表
    List<QuestionUserEx> selectPageQuestionUserShare(PagePhone pagePhone);
    //搜索问题
    public List<QuestionUserEx> selectSearchQuestionUser(PagePhone pagePhone);
    //修改问题表 回答人的信息
    public void updateByPrimaryKeySelective(Question question);
    //围观列表
    public List<QuestionEx> selectPageOnlook(QuestionExample example);
    //围观搜索
    public List<QuestionEx> selectOnlookSerarch(SerarchExample serarchExample);
}